#ifndef IMAGEPAGEPARSER_H
#define IMAGEPAGEPARSER_H

#include <QObject>

#include "modelpageparser.h"

namespace Jcr
{
class ImagePageParserPrivate;
class ImagePageParser : public ModelPageParser
{
    Q_OBJECT
public:
    explicit ImagePageParser(QObject *parent = 0);
    ~ImagePageParser();

    const QStringList& images() const;

signals:
    void finishedSavingImages();

protected:
    void processNode(GumboNode* node);
    void finalize();

private slots:
    void onFinishedDownloadingImage();

private:
    ImagePageParserPrivate* d_ptr;
    Q_DISABLE_COPY(ImagePageParser)
};

} // namespace Jcr
#endif // IMAGEPAGEPARSER_H
